{
  "properties" : { },
  "id" : "059aaf9881f04d4a92596c2835937bf6",
  "script" : null,
  "groupId" : "e7c57e1086a64d09a8c9d615ca57f6fd",
  "name" : "预览配置文件",
  "createTime" : 1727071201261,
  "updateTime" : 1726652111247,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "selectList",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\n    \"id\": \"1801438832302784514\"\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": [\n        {\n            \"id\": \"1801438832302784514\",\n            \"deviceId\": \"D1153460434222107287\",\n            \"location\": \"rom:/\",\n            \"filename\": \"startup.cfg\",\n            \"content\": \"#\\n version 7.1.064, Release 0821P13\\n#\\n sysname SN-XY.JingHuiGF.R\\n#\\n clock protocol none\\n#\\nip vpn-instance SXDD-VPN_1\\n route-distinguisher 30061:1\\n vpn-target 30061:1 30000:100 20000:100 import-extcommunity\\n vpn-target 30061:1 export-extcommunity\\n#\\nip vpn-instance SXDD-VPN_2\\n route-distinguisher 30061:2\\n vpn-target 30061:2 30000:200 20000:200 import-extcommunity\\n vpn-target 30061:2 export-extcommunity\\n#\\nwlan global-configuration\\n#\\n security-zone intra-zone default permit\\n#\\n router id 61.2.7.33\\n#\\n---- More ----               \\rospf 1\\n import-route direct\\n import-route static\\n area 0.0.0.36\\n  network 61.2.7.33 0.0.0.0\\n  network 61.3.7.168 0.0.0.3\\n#\\n mpls lsr-id 61.2.7.33\\n#\\n system-working-mode standard\\n password-recovery enable\\n#\\nvlan 1\\n#\\nmpls ldp\\n#\\ncontroller Cellular0/0\\n#\\ncontroller Cellular0/1\\n#\\ninterface Aux0\\n#\\ninterface Serial3/0\\n---- More ----               \\r shutdown\\n#\\ninterface Serial3/1\\n shutdown\\n#\\ninterface Serial4/0\\n fe1 unframed\\n ip address 61.3.7.170 255.255.255.252\\n mpls enable\\n mpls ldp enable\\n#\\ninterface Serial4/1\\n shutdown\\n#\\ninterface NULL0\\n#\\ninterface LoopBack0\\n ip address 61.2.7.33 255.255.255.255\\n#\\ninterface GigabitEthernet0/0\\n port link-mode route\\n description to SXDD-VPN_1\\n combo enable copper\\n---- More ----               \\r ip binding vpn-instance SXDD-VPN_1\\n ip address 61.100.47.254 255.255.255.192\\n#\\ninterface GigabitEthernet0/1\\n port link-mode route\\n description to SXDD-VPN_2\\n combo enable copper\\n ip binding vpn-instance SXDD-VPN_2\\n ip address 61.101.47.254 255.255.255.192\\n#\\ninterface GigabitEthernet0/2\\n port link-mode route\\n shutdown\\n#\\nbgp 30061\\n group SXDD internal\\n peer 10.61.250.1 group SXDD\\n peer 10.61.250.2 group SXDD\\n peer 10.61.250.26 group SXDD\\n #\\n address-family ipv4 unicast\\n  peer SXDD enable\\n #\\n---- More ----               \\r address-family vpnv4\\n  peer SXDD enable\\n #\\n ip vpn-instance SXDD-VPN_1\\n  #\\n  address-family ipv4 unicast\\n   import-route direct\\n   import-route static\\n #\\n ip vpn-instance SXDD-VPN_2\\n  #\\n  address-family ipv4 unicast\\n   import-route direct\\n   import-route static\\n#\\n scheduler logfile size 16\\n#\\nline class aux\\n user-role network-admin\\n#\\nline class tty\\n user-role network-operator\\n#\\n---- More ----               \\rline class vty\\n user-role network-operator\\n#\\nline aux 0\\n authentication-mode password\\n user-role network-admin\\n set authentication password hash $h$6$wKRQlkHzhUtqDqXg$i345sSXrm6z0KbYA/EHEA9ow99EoTJUVQW+w9qkGdr1uODTaBJHasihmAXSL2gDY6mNWxCNnUgbkOdenrAVMRA==\\n idle-timeout 5 0\\n#\\nline vty 0 4\\n authentication-mode scheme\\n user-role network-admin\\n user-role network-operator\\n idle-timeout 5 0\\n#\\nline vty 5 63\\n authentication-mode scheme\\n user-role network-operator\\n#\\n snmp-agent\\n snmp-agent local-engineid 800063A280B845F4FEE22500000001\\n snmp-agent community read ride@don2\\n snmp-agent sys-info version v2c v3 \\n---- More ----               \\r#\\nperformance-management\\n#\\n ssh server enable\\n ssh user sn service-type stelnet authentication-type password\\n ssh user xianyangpt service-type stelnet authentication-type password\\n ssh user xianyangsj service-type stelnet authentication-type password\\n#\\nacl advanced 3000\\n rule 1 permit ip source 127.0.0.1 0\\n rule 5 permit ip vpn-instance SXDD-VPN_1 source 10.61.0.0 0.0.255.255\\n rule 10 permit ip vpn-instance SXDD-VPN_2 source 10.61.0.0 0.0.255.255\\n rule 15 permit ip source 61.2.0.0 0.0.255.255\\n rule 20 permit ip source 61.3.0.0 0.0.255.255\\n rule 25 permit ip vpn-instance SXDD-VPN_1 source 61.0.0.0 0.255.255.255\\n rule 30 permit ip vpn-instance SXDD-VPN_2 source 61.0.0.0 0.255.255.255\\n#\\n undo password-control aging enable \\n undo password-control history enable \\n password-control length 8\\n password-control login-attempt 3 exceed lock-time 10\\n password-control update-interval 0\\n password-control login idle-time 0\\n---- More ----               \\r#\\ndomain system\\n#\\n domain default enable system\\n#\\nrole name level-0\\n description Predefined level-0 role\\n#\\nrole name level-1\\n description Predefined level-1 role\\n#\\nrole name level-2\\n description Predefined level-2 role\\n#\\nrole name level-3\\n description Predefined level-3 role\\n#\\nrole name level-4\\n description Predefined level-4 role\\n#\\nrole name level-5\\n description Predefined level-5 role\\n#\\n---- More ----               \\rrole name level-6\\n description Predefined level-6 role\\n#\\nrole name level-7\\n description Predefined level-7 role\\n#\\nrole name level-8\\n description Predefined level-8 role\\n#\\nrole name level-9\\n description Predefined level-9 role\\n#\\nrole name level-10\\n description Predefined level-10 role\\n#\\nrole name level-11\\n description Predefined level-11 role\\n#\\nrole name level-12\\n description Predefined level-12 role\\n#\\nrole name level-13\\n description Predefined level-13 role\\n---- More ----               \\r#\\nrole name level-14\\n description Predefined level-14 role\\n#\\nuser-group system\\n#\\nlocal-user sn class manage\\n password hash $h$6$dI1d0aUOusY76XJ/$WtIOOKz49wAsb5cuJ4r/QErECeNrkh9LlsBugjTIJSCy/qXAJiHjNHgOzRO0gdr1JA2dgu1uwM2cWrYdSEuyXA==\\n service-type ssh\\n authorization-attribute user-role network-admin\\n authorization-attribute user-role network-operator\\n#\\nlocal-user xianyangpt class manage\\n password hash $h$6$qBEcQD3ykDV1ECR/$4mHqA9QUaDQM5pfkfahJT6Kbg+VSYY1uZtmXRBngvOj3TboS9npPDK6pO7hulhKyjX8fiJL8cfwuIvWEk+lsGQ==\\n service-type ssh\\n authorization-attribute user-role level-1\\n authorization-attribute user-role network-operator\\n#\\nlocal-user xianyangsj class manage\\n password hash $h$6$a2qH4lh+Ksjz2g83$vtv6CvhOVSZDUCZkLVHHQYgsLMzeB4ZoiUt8+MWxC1dCKdSD+LHO7LHiuAJ/vvZgBr1DuXiBB5mEimMFOY08Jw==\\n service-type ssh\\n authorization-attribute user-role level-2\\n authorization-attribute user-role network-operator\\n---- More ----               \\r#\\npublic-key peer 127.0.0.1\\n public-key-code begin\\n   30819F300D06092A864886F70D010101050003818D0030818902818100BB1CE9586B0218D5\\n   3C71EBF42451DA8F3883FF79FDBEC264565A3063287856BD548408F69B6D264DD59F825B44\\n   DB0BC742533403DFF48B92401D4661358C6041ADC063118C5E115DF5E20C0928D7BD53BFA9\\n   1DBA5D5A1459CC08D1DA7278744077C67B51BFFFCE6514F6C9FA72D9401D92BAD770DB8BC9\\n   69B7F48A3031D7C28B0203010001\\n public-key-code end\\n peer-public-key end\\n#\\n web new-style\\n#\\nwlan ap-group default-group\\n vlan 1\\n#\\nreturn\",\n            \"updateTime\": \"2024-06-14T10:17:41.393\",\n            \"md5Digest\": \"\"\n        }\n    ]\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : null,
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  },
  "responseBodyDefinition" : {
    "name" : null,
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  }
}
================================
import com.kd.ndmp.core.excel.NetDeviceCfgFileVO
import org.springframework.beans.BeanUtils;
import java.util.stream.Collectors;
import java.time.LocalDateTime;

ids = body.id.split(",");
// List listId = Arrays.asList(ids)
sql = """ select * from ndmp_net_device_cfg_file where id in 
          <foreach collection="ids" open="(" separator="," close=")" item="item">
              #{item}
          </foreach>
          order by update_time desc
          limit 10
"""
list = db.select(sql)
return list.stream().map(result -> {
    NetDeviceCfgFileVO netDeviceCfgFileVO = new NetDeviceCfgFileVO();
    BeanUtils.copyProperties(result, netDeviceCfgFileVO);
    file = result.file;
    String content = new String(file);
    netDeviceCfgFileVO.setId(result.id);
    netDeviceCfgFileVO.setDeviceId(result.deviceId);
    netDeviceCfgFileVO.setLocation(result.location);
    netDeviceCfgFileVO.setFilename(result.filename);
    netDeviceCfgFileVO.setUpdateTime(result.updateTime.toLocalDateTime());
    netDeviceCfgFileVO.setMd5Digest(result.md5Digset);
    netDeviceCfgFileVO.setContent(content);
    return netDeviceCfgFileVO;
}).collect(Collectors.toList());